package mapper;

import org.apache.ibatis.annotations.Param;
import pojo.User;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    User selectBaseUserByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectByMailAndPassword(@Param("mail") String mail, @Param("password") String password);

    User selectByMail(String mail);

    int updateByPrimaryKeyForInformation(User user);

    int updateByPrimaryKeyForHeadImg(User user);

    List<User> selectReplyTop();

    User selectByName(String userName);
}